package com.lywz.web.action.scenic;

import java.util.List;

import com.lywz.biz.common.entity.scenic.Attraction;
import com.lywz.biz.common.entity.scenic.Scenic;
import com.lywz.biz.common.entity.scenic.ScenicAround;
import com.lywz.biz.common.entity.scenic.ScenicHomepage;
import com.lywz.biz.common.entity.scenic.ScenicImage;
import com.lywz.biz.common.entity.scenic.ScenicVideo;
import com.lywz.web.struts.GZAbstracterAction;

/**
 * 景区Action
 * 
 * @author Huadi Luojun
 * @date 2010-5-3
 */
public class ShowScenicAction extends GZAbstracterAction {

    private static final long serialVersionUID = 6443124470003475555L;

    private List<ScenicHomepage> showScenicList; //主页上的缩略图+名称

    private Scenic showOneScenic;

    private List<ScenicAround> showScenicAroundList;

    //景点列表
    private List<Attraction> attractionList;

    //景区图片列表
    private List<ScenicImage> scenicImage;

    //景区视频列表
    private List<ScenicVideo> scenicVideo;

    private Integer scenicId;

    private Integer category = -1;

    private Integer city = -1;

    private Integer level = -1;

    
    private List<Scenic> showCategoryScenicList;

    public String showHomepageList() {
        showScenicList = scenicService.getHomepageList();
        return SUCCESS;
    }

    public String showCategoryList() {
        showScenicList = scenicService.getCategoryList(category);
        showCategoryScenicList = scenicService.getCategoryScenicList(category, city, level);
        return SUCCESS;
    }

    public String showOneScenic() {
        showOneScenic = scenicService.getOneScenic(scenicId);
        showScenicAroundList = scenicService.getAroundScenicList(scenicId);
        
        return SUCCESS;
    }

    public String showAttractionList() {
        attractionList = scenicService.getAttractionList(scenicId);
        showOneScenic = scenicService.getOneScenic(scenicId);
        showScenicAroundList = scenicService.getAroundScenicList(scenicId);
        return SUCCESS;
    }

    public String showImageAndVideo() {
        scenicImage = scenicService.getScenicImage(scenicId);
        scenicVideo = scenicService.getScenicVideo(scenicId);
        showScenicAroundList = scenicService.getAroundScenicList(scenicId);
        return SUCCESS;
    }

    //////////Getters, Setters and Constructors//////////
    public List<ScenicHomepage> getShowScenicList() {
        return showScenicList;
    }

    public void setShowScenicList(List<ScenicHomepage> showScenicList) {
        this.showScenicList = showScenicList;
    }

    public Scenic getShowOneScenic() {
        return showOneScenic;
    }

    public void setShowOneScenic(Scenic showOneScenic) {
        this.showOneScenic = showOneScenic;
    }

    public List<ScenicAround> getShowScenicAroundList() {
        return showScenicAroundList;
    }

    public void setShowScenicAroundList(List<ScenicAround> showScenicAroundList) {
        this.showScenicAroundList = showScenicAroundList;
    }

    public Integer getScenicId() {
        return scenicId;
    }

    public void setScenicId(Integer scenicId) {
        this.scenicId = scenicId;
    }

    public List<Attraction> getAttractionList() {
        return attractionList;
    }

    public void setAttractionList(List<Attraction> attractionList) {
        this.attractionList = attractionList;
    }

    public List<ScenicImage> getScenicImage() {
        return scenicImage;
    }

    public void setScenicImage(List<ScenicImage> scenicImage) {
        this.scenicImage = scenicImage;
    }

    public List<ScenicVideo> getScenicVideo() {
        return scenicVideo;
    }

    public void setScenicVideo(List<ScenicVideo> scenicVideo) {
        this.scenicVideo = scenicVideo;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public List<Scenic> getShowCategoryScenicList() {
        return showCategoryScenicList;
    }

    public void setShowCategoryScenicList(List<Scenic> showCategoryScenicList) {
        this.showCategoryScenicList = showCategoryScenicList;
    }

}
